// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 新增 关键词  POST */
export async function saveKeywordy(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/datahub/keyword/save', {
    method: 'POST',
    data: options || {},
  });
}
/** 修改 关键词  POST */
export async function updateKeyword(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/datahub/keyword/update', {
    method: 'POST',
    data: options || {},
  });
}
/** 删除 关键词  POST */
export async function deleteKeyword(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/datahub/keyword/delete', {
    method: 'POST',
    data: options || {},
  });
}
/** 删除 同步任务  POST */
export async function updateStateKeyword(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/datahub/keyword/updateState', {
    method: 'POST',
    data: options || {},
  });
}
/**  关键词  POST */
export async function pageKeyword(options?: { [key: string]: any }) {
  return request<BaseResponseBean.responsePage<DatahubSynchronyData.SynchronyPage>>(
    '/datahub/keyword/page',
    {
      method: 'POST',
      data: options || {},
    },
  );
}
/** 获取 组织树 POST */
export async function treeOrganization(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<AdminOrganizationData.Organization[]>>(
      '/datahub/keyword/tree',
      {
        method: 'POST',
        data: options || {},
      },
    );
  }
